BUILDDIR 	:= ${PWD}/../.build

#CC=gcc34
#CFLAGS = -D__i386__

#ALL += nspr
#nspr_tarball 		= nspr.tar.bz2
#nspr_tarball_dir 	= mozilla/nsprpub
##nspr_options 		+= --enable-strip
#nspr_options 		+= --enable-nspr-threads --enable-mdupdate
#nspr_options 		+= --enable-64bit
#nspr_cflags = -m64
##nspr_options 		+= --enable-user-pthreads


ALL += js
#js_tarball 			= mozilla-js.tar.bz2
#js_tarball_dir 		= mozilla/js/src

js_tarball 			= tracemonkey.tar.bz2
js_tarball_dir 		= js/src

js_make_args 		= -j5
js_post_install = cd include/js && chmod 644 *.*
js_options  += --enable-threadsafe
js_options  += --disable-tests
js_options 	+= --with-system-nspr 
#js_options 	+= --with-nspr-prefix=${BUILDDIR}
js_options  +=  --enable-jemalloc
#js_options  += --enable-debug
js_options  += --enable-old-abi-compat-wrappers
#js_options 			+= --enable-static --with-nspr-prefix=../.build
#js_options 		    += --with-pthreads --with-system-nspr --disable-tracejit
js_options += --enable-static
#js_options +=  --enable-boehm
#js_options  += --disable-optimize


# --enable-threadsafe --disable-tests --with-system-nspr --enable-jemalloc --enable-debug --enable-old-abi-compat-wrappers --enable-static

ALL += dyncall
dyncall_tarball 	= dyncall-0.5.tar.gz
dyncall_tarball_dir = dyncall-0.5



include ../mk/contrib.mk

